import Vue from 'vue'
import Vuex from 'vuex'

import user from './modules/user'
import system from './modules/system'
import riskControl from './modules/riskControl'
import exchange from './modules/exchange'
import account from  './modules/account'
import assets from  './modules/assets'
import riskTemplate from  './modules/riskTemplate'
import routes from './modules/routes'

Vue.use(Vuex);

export const store = new Vuex.Store({
  modules: {
    account,
    user,
    system,
    riskControl,
    exchange,
    assets,
    riskTemplate,
    routes
  }
})
